#include "Sort.h"
//
void TestInsertSort()
{
	int arr[] = { 1,5,8,7,6,9,18,4,34,12,27,3,46,2,36,54,0 };
	int size = sizeof(arr) / sizeof(arr[0]);
	PrintfArroy(arr, size);
	InsertSort(arr, size);
	PrintfArroy(arr, size);

}
//
void TestShellSort()
{
	int arr[] = { 1,5,8,7,6,9,18,4,34,12,27,3,46,2,36,54,0 };
	int size = sizeof(arr) / sizeof(arr[0]);
	PrintfArroy(arr, size);
	ShellSort(arr, size);
	PrintfArroy(arr, size);
}
void TestSelectSort()
{
	int arr[] = { 1,5,8,7,6,9,18,4,34,12,27,3,46,2,36,54,0 };
	int size = sizeof(arr) / sizeof(arr[0]);
	PrintfArroy(arr, size);
	SelectSort(arr, size);
	PrintfArroy(arr, size);
}

int main()
{
	//TestInsertSort();
	//TestShellSort();
	TestSelectSort();
	return 0;
}


